package com.thinkgem.jeesite.modules.greatmom.rest;

import com.thinkgem.jeesite.modules.greatmom.vo.APIWelcome;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "${restPath}")
public class RestFullController {

    @RequestMapping(value = "")
    @ResponseBody
    public APIWelcome api() {
        APIWelcome welcome = new APIWelcome();
        return welcome;
    }

    @RequestMapping(value = "test",produces = "application/json")
    @ResponseBody
    public String test() {
        return "{\"name\":24324}";
    }
}
